﻿<?xml version="1.0" encoding="utf-8" ?>
<Page xmlns="http://www.baojiansoft.com/schemas/dynamicpage" ObjectId="OrganizationTypeManagement" Type="BaoJianSoft.Platform.Web.DynamicPage.OrganizationTypeManagement, BaoJianSoft.Platform">
	<Title>$Resources.Membership.OrganizationTypeLongDesc, BaoJianSoft.Web$ $Resources.Membership.Management, BaoJianSoft.Web$</Title>
	<PermissionValue>OrganizationTypeManagement</PermissionValue>
	<Panels>
		<QueryPanel HeaderText="$Resources.Membership.Query, BaoJianSoft.Web$ $Resources.Membership.OrganizationTypeLongDesc, BaoJianSoft.Web$">
			<TextBox FieldName="Name" Label="$Resources.Membership.OrganizationType_Name, BaoJianSoft.Web$: " />
			<ComboBox FieldName="Domain" Editable="false" ForceSelection="true" Label="$Resources.Membership.OrganizationType_Domain, BaoJianSoft.Web$: ">
				<DynamicDataSource TextField="Text" ValueField="Value" Url="/Services/OrganizationService.svc/json/ListDomains" />
			</ComboBox>
			<CheckBoxGroup FieldName="Predefined" FieldValueType="System.Boolean" Label="$Resources.Membership.Predefined, BaoJianSoft.Web$: " Occupation="1">
				<Item Text="&lt;span style='color:green'&gt;Yes&lt;/span&gt;" Value="true" />
				<Item Text="&lt;span style='color:red'&gt;No&lt;/span&gt;" Value="false" />
			</CheckBoxGroup>
		</QueryPanel>
		
		<ButtonPanel ButtonAlignment="Left">
			<Button CommandArgument="New" Type="NewImage" ToolTip="$Resources.Membership.Add, BaoJianSoft.Web$" />
		</ButtonPanel>
		
		<GridViewPanel HeaderText="$Resources.Membership.QueryResults, BaoJianSoft.Web$"
			EntityName="$Resources.Membership.OrganizationTypeLongDesc, BaoJianSoft.Web$"
			EnabledCheckBoxField="true"
			PageSize="25"
			PrimaryKeyFieldName="OrganizationTypeId"
			DefaultSortField="LastUpdatedDate"
			DefaultSortDirection="DESC">
			<ViewButton />
			<EditButton />
			<DeleteButton />
			<Fields>
				<Field FieldName="Name" HeaderText="$Resources.Membership.OrganizationType_Name, BaoJianSoft.Web$" />
				<Field FieldName="Domain" HeaderText="$Resources.Membership.OrganizationType_Domain, BaoJianSoft.Web$" />
				<Field FieldName="Predefined" HeaderText="$Resources.Membership.Predefined, BaoJianSoft.Web$">
					<Transform-Switch>
						<Case Value="True">&lt;span style='color:green'&gt;$Resources.Membership.Yes, BaoJianSoft.Web$&lt;/span&gt;</Case>
						<Case Value="False">&lt;span style='color:red'&gt;$Resources.Membership.No, BaoJianSoft.Web$&lt;/span&gt;</Case>
					</Transform-Switch>
				</Field>
				<Field FieldName="LastUpdatedDate" HeaderText="$Resources.Membership.ModifiedOn, BaoJianSoft.Web$" Align="Center" Width="150" />
				<RowView FieldName="Description" />
			</Fields>
		</GridViewPanel>
		
		<DetailPanel HeaderText="$Resources.Membership.OrganizationTypeLongDesc, BaoJianSoft.Web$ $Resources.Membership.Profile, BaoJianSoft.Web$" ShowMessageAfterSavedSuccessfully="false">
			<Type>BaoJianSoft.Platform.Web.DynamicPage.OrganizationTypeDetailPanel, BaoJianSoft.Platform</Type>
			<SkinPath>~/Templates/Platform/OrganizationType.ascx</SkinPath>
			<SaveButton />
			<CancelButton />
		</DetailPanel>
	</Panels>
</Page>